import request from '@/utils/request'

// 查询我的日程列表
export function listOaMySchedule(query) {
  return request({
    url: '/mySchedule/oaMySchedule/list',
    method: 'get',
    params: query
  })
}

// 查询我的日程列表
export function getOaMyScheduleByParams(query) {
  return request({
    url: '/mySchedule/oaMySchedule/getOaMyScheduleByParams',
    method: 'get',
    params: query
  })
}

// 查询我的日程列表
export function getOaWeekByTime(query) {
  return request({
    url: '/mySchedule/oaMySchedule/getOaWeekByTime',
    method: 'get',
    params: query
  })
}

// 查询我的日程详细
export function getOaMySchedule(id) {
  return request({
    url: '/mySchedule/oaMySchedule/' + id,
    method: 'get'
  })
}

// 保存我的日程
export function saveOaMySchedule(data) {
  return request({
    url: '/mySchedule/oaMySchedule/save',
    method: 'post',
    data: data
  })
}

// 删除我的日程
export function delOaMySchedule(id) {
  return request({
    url: '/mySchedule/oaMySchedule/' + id,
    method: 'delete'
  })
}

// 导出我的日程
export function exportOaMySchedule(query) {
  return request({
    url: '/mySchedule/oaMySchedule/export',
    method: 'get',
    params: query
  })
}
